
#pragma once
#include <cpprest/json.h>
#include <iostream>
#include <vector>

#include "MxBase/MxBase.h"
#include "MxBase/MemoryHelper/MemoryHelper.h"
#include "MxBase/DeviceManager/DeviceManager.h"
#include "MxBase/Log/Log.h"
#include "PostProcess.h"

using namespace web;
using namespace MxBase;

class JsonGenerator {
public:
    // static std::string generateJson();
    std::string generateJson(const std::vector<std::vector<ObjectInfo>> &objectInfos, uint32_t time, int32_t typeCode=0);
private:
    json::value m_json;
};


